package com.life.ai.server.modules.system.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderGuideStatus {

    ORDER_CANCEL("ORDER_CANCEL","1","订单取消"),
    ORDER_REBACK("ORDER_REBACK","2","订单退款");

    private final String value;


    private final String code;

    private final String desc;


    public static String getOrderGuideStatus(String code){
        for (OrderGuideStatus orderGuideStatus : OrderGuideStatus.values()) {
            if(orderGuideStatus.getCode().equals(code)){
                return orderGuideStatus.getValue();
            }
        }
        return null;
    }

}
